import grails.util.Environment
import pl.pr3sto.BootStrapService

class BootStrap {
	BootStrapService bootStrapService

    def init = { servletContext ->
		try {
			bootStrapService.boot(Environment.current)
		} catch(Exception e) {
			log.error("Bootstrap failed, " + e)
			println("ERROR | Bootstrap failed, " + e)
			e.printStackTrace()
		}
    }
    def destroy = {
    }
	
}
